<h:panelGrid xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:t="http://myfaces.apache.org/tomahawk" width="100%">

	<p:dataTable styleClass="tableNoHeader" value="#{evokPatientTherapyArchiveBean.commentList}" var="cm"
		type="ordered" id="comments" style="width:100%" emptyMessage="">
		<p:column>
			<h:outputText value="#{cm.sender.userReference.surname} #{cm.sender.userReference.name}: " style="font-weight: bold;" />
			<h:outputText value="#{cm.message}" />
			<br />
			<h:outputText styleClass="comment_time" value="#{cm.operTime}" converter="dateTimeConverter" />
		</p:column>
		<f:facet name="footer">
			<h:panelGroup rendered="#{evokPatientTherapyArchiveBean.commentAllow}">
				<p:inputTextarea id="commentMsg" value="#{evokPatientTherapyArchiveBean.comment.message}" rows="4"
					maxlength="255" style="width:60%"/>
					
				<h:outputText value="&#160;" escape="false" />
				
				<p:commandButton value="#{msgs.button_comment}"
					update="comments,:messages" icon="ui-icon-comment"
					actionListener="#{evokPatientTherapyArchiveBean.submitComment}" />
			</h:panelGroup>
		</f:facet>
	</p:dataTable>
</h:panelGrid>
